import 'package:event_bus/event_bus.dart';
import 'package:jingyuan/PlayerManager/index.dart';

class FishEventBus {
  static final _eventBus = EventBus();

  static Stream<T> on<T>() {
    return _eventBus.on<T>();
  }

  static void fire(dynamic event) {
    _eventBus.fire(event);
  }
}

class PlayEvent {
  PlayEvent(this.url);

  String url;
}

class PlayCompleteEvent {
  String url;
  PlayerManager player;
  PlayCompleteEvent(this.url, this.player);
}